<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>New Admission Form</title>

<SCRIPT type="text/javascript">

$(document).ready(function(){

	$(function(){
		$('#birthDate').datepicker({
		dateFormat: 'dd/mm/yy',
		changeYear: true,
		yearRange: "1960:2010"
		});
	});

});

</script>

</head>
<body style="">
<h4>Jobseeker's Registration Form</h4>

<form:form action="reg" commandName="empRegFrm" method="POST"
	enctype="multipart/form-data">

	<s:bind path="*">
		<c:if test="${status.error}">
			<div id="message" class="error">Form has errors</div>
		</c:if>
	</s:bind>
	<fieldset><legend>Employee's Registration Form</legend>
	<div align="center">
	<table class="form-table" border="0" style="margin: 0 auto;">
		<tr>
			<td colspan="3">Fields marked with <span class="mandatory">*</span>
			are mandatory.</td>
		</tr>
		<tr>
			<td width="160"><form:label path="firstName">First Name<span
					class="mandatory">*</span>
			</form:label></td>
			<td><form:input path="firstName" id="firstName" /></td>
			<td colspan="2" class="error" width="250">&nbsp;<form:errors
				path="firstName" cssStyle="color:red;" /></td>
		</tr>
		<tr>
			<td width="160"><form:label path="lastName">Last Name</form:label></td>
			<td><form:input path="lastName" id="lastName" /></td>
			<td colspan="2" class="error" width="250">&nbsp;<form:errors
				path="lastName" cssStyle="color:red;" /></td>
		</tr>
		<tr>
			<td width="160"><form:label path="email">Email<span
					class="mandatory">*</span>
			</form:label></td>
			<td><form:input path="email" id="email" /></td>
			<td colspan="2" class="error" width="250">&nbsp;<form:errors
				path="email" cssStyle="color:red;" /></td>
		</tr>
		<tr>
			<td width="160"><form:label path="password">Password<span
					class="mandatory">*</span>
			</form:label></td>
			<td><form:input path="password" id="password" /></td>
			<td colspan="2" class="error" width="250">&nbsp;<form:errors
				path="password" cssStyle="color:red;" /></td>
		</tr>
		<tr>
			<td width="160"><form:label path="rePassword">Re-enter Password<span
					class="mandatory">*</span>
			</form:label></td>
			<td><form:input path="rePassword" id="rePassword" /></td>
			<td colspan="2" class="error" width="250">&nbsp;<form:errors
				path="rePassword" cssStyle="color:red;" /></td>
		</tr>
		<tr>
			<td width="160">&nbsp;</td>
			<td><input type="submit" value="Save" class="button"
				style="width: 100px;" /></td>
			<td colspan="2" width="250">&nbsp;</td>
		</tr>
	</table>
	</div>
	</fieldset>
</form:form>
</body>
</html>